/*
 * @Descripttion: 购物车相关路由
 * @version: 
 * @Author: 一氧化二氢
 * @Date: 2022-01-03 21:11:24
 * @lastEditorTime: Do no edit
 */

const Router = require('koa-router')
//控制器
const { add } = require('../controller/cart.controller')
//中间件
const {auth} = require('../middleware/auth.middleware')
//校验器
const {validator} = require('../middleware/cart.middleware')
const router = new Router({prefix:"/cart"})

router.post('/',auth,validator,add)
module.exports = router